/**
 * @(#)ThirdMiguUserServiceImpl.java 2017年2月21日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.service.impl;

import org.jsbd.boss.domian.channel.MiguUser;
import org.jsbd.boss.domian.channel.ThirdUserQueryVo;
import org.jsbd.boss.enums.LoginTypeEnum;
import org.jsbd.boss.enums.MiguTableEnum;
import org.jsbd.boss.util.CacheKey;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 第三方咪咕登录
 *
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service("thirdMiguUserService2")
public class ThirdMiguUserServiceImpl2 extends ThirdLoginAdapterHandler<MiguUser> {

    @Override
    public boolean init() {
        loginIndexKey = CacheKey.THIRD_MIGU_USR_APK2;
        loginType = LoginTypeEnum.THIRD_MIGU2;
        queueKey = CacheKey.THIRD_MIGU_USER_QUEUE2;
        return true;
    }

    @Override
    public List<MiguUser> selectUserList(ThirdUserQueryVo queryVo) {
        queryVo.setTableName(MiguTableEnum.THIRD_MIGU2.getCode());
        return selectMiguUserList(queryVo);
    }
}
